<template>
  <div>
    <el-config-provider :locale="zhCn">
      <RouterView />
    </el-config-provider>
  </div>
</template>

<script setup lang="ts">
import { ElConfigProvider } from 'element-plus'
import zhCn from 'element-plus/es/locale/lang/zh-cn'
import useSettingStore from '@/store/modules/setting';

// 项目加载设置主题色
useSettingStore().updateTheme(undefined);
</script>

<style scoped lang="scss">
h1 {
  color: $color;
}
</style>
